<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:insert="~{include :: header('修改需求优先级')}" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-priorities-edit" th:object="${issuePrioritie}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">优先级名称：</label>
                    <div class="col-sm-8">
                        <input name="name" th:field="*{name}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">是否可用：</label>
                    <div class="col-sm-8">
                        <input name="active" th:field="*{active}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">是否默认优先级：</label>
                    <div class="col-sm-8">
                        <input name="isDefault" th:field="*{isDefault}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
				<div class="form-group">
					<label class="col-sm-3 control-label">回显样式：</label>
					<div class="col-sm-8">
						<select name="listClass" class="form-control m-b">
						    <option value=""        th:field="*{listClass}">---请选择---</option>
				            <option value="default" th:field="*{listClass}">默认</option>
				            <option value="primary" th:field="*{listClass}">主要</option>
				            <option value="success" th:field="*{listClass}">成功</option>
				            <option value="info"    th:field="*{listClass}">信息</option>
				            <option value="warning" th:field="*{listClass}">警告</option>
				            <option value="danger"  th:field="*{listClass}">危险</option>
				        </select>
				        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> table表格字典列显示样式属性</span>
					</div>
				</div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">状态颜色：</label>
                    <div class="col-sm-8">
                        <input name="htmlColor" class="form-control jscolor" type="text" id="htmlColor" data-jscolor="{}" th:field="*{htmlColor}">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:insert="~{include :: footer}" />
	<script th:src="@{/ajax/libs/jscolor/jscolor.min.js}"></script>
    <script th:inline="javascript">
        var prefix = ctx + "project/prioritie";
        $("#form-priorities-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-priorities-edit').serialize());
            }
        }
    </script>
</body>
</html>